import request from '@/utils/axios'

/**
 * @param {Object} id
 * @param {Object} status更改友情链接状态
 */
export function changeLinkStatus(id, status) {
  const data = {
    id,
    status
  }
  return request({
    url: '/system/link/changeStatus',
    method: 'put',
    data
  })
}

// 新增友情链接
export function addLink(data) {
  return request({
    url: '/system/link',
    method: 'post',
    data
  })
}

// 编辑友情链接
export function updateLink(data) {
  return request({
    url: '/system/link',
    method: 'put',
    data
  })
}

